
const colorReducer = (state = 'red' , action) => {
    console.log('colorReducer触发了')
    switch(action.type){
      case 'blue':
        return 'blue';
       default: 
         return state;
    }
 }
   
 export default colorReducer